/*
 * Copyright 2007 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */

package com.cnc.bas;

import java.io.Serializable;
import java.util.List;

import com.cnc.bas.common.HQueryInfo;
import com.cnc.bas.common.SQueryInfo;

/**
 * @author hongdj
 * @version 1.0  2008-3-18
 */
public interface IBasService {
	
	public static final String BEAN_NAME = "basService";

    public void add(Object vo);

    public void update(Object vo);

    public void delete(Class entityClass, Serializable id);

    public List listAll(Class entityClass, String order);

    public Object load(java.lang.Class entityClass, java.io.Serializable id);

    public List list(Object param, String order);
    
    public HQueryInfo query(final HQueryInfo queryInfo, final boolean isCache);

    public HQueryInfo query(final HQueryInfo queryInfo);
    
    public SQueryInfo query(final SQueryInfo queryInfo);
}
